-- GENERATED SPELL FOR [Orc Warlock] --


function spell0_21750(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(37463,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21750', 0, 1)
end

function spell1_21750(pUnit, Event) --@Poison Cloud,n/a--
pUnit:FullCastSpellOnTarget(37469,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21750', 10000, 1)
end

function Sorts_21750(pUnit, Event)
local choix_sorts_21750 = math.random(0, 1)
if choix_sorts_21750 == 0 then
pUnit:RegisterEvent('spell0_21750', 1, 1)
end
if choix_sorts_21750 == 1 then
pUnit:RegisterEvent('spell1_21750', 1, 1)
end
end

function mob21750_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21750', math.random(1500, 3000), 1)
end

function mob21750_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21750_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21750_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21750, 1, 'mob21750_Action')
RegisterUnitEvent(21750, 2, 'mob21750_Leave')
RegisterUnitEvent(21750, 3, 'mob21750_Kill')
RegisterUnitEvent(21750, 4, 'mob21750_Die')
